package xyz.fuqufyb.aec;

import com.github.pagehelper.PageInfo;

import com.github.tobato.fastdfs.FdfsClientConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author fyb
 * @version 1.0
 * @date 2021/3/11 17:25
 */
@SpringBootApplication
@EnableEurekaClient  //注册到eureka
//@EnableCircuitBreaker //开启hystrix
@EnableFeignClients // 开启 openFeign
@MapperScan("xyz.fuqufyb.aec.dao")
//@EnableTransactionManagement // 开启分布式事务
//@EnableBinding(SendAPIRoutingChangeStream.class) //绑定 消息
@Import(FdfsClientConfig.class)//fastdfs
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)//fastdfs
public class WebSmmMain7777 {
    public static void main(String[] args) {
        SpringApplication.run(WebSmmMain7777.class, args);
    }
}
